package com.google.code.hibernate.rest;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 
 * @author wangzijian
 * 
 */
public interface ExceptionHandler {

	boolean canHandle(Class<? extends RuntimeException> type);

	void handle(RuntimeException e, HttpServletRequest request, HttpServletResponse response) throws IOException;
}
